#! /bin/bash

concurrency=5000

requests=10000

timelimit=1000

#default 30s
timeout=300


echo "开始测试BIO服务======================="
ab -c $concurrency -n $requests -s $timeout  http://localhost:8180/io/movie

echo "结束测试BIO服务======================="


echo "开始测试NIO服务........................."
ab -c $concurrency -n $requests -s $timeout  http://localhost:8181/io/movie
echo "结束测试NIO服务........................."

echo "开始测试APR服务--------------------------"
ab -c $concurrency -n $requests -s $timeout  http://localhost:8182/io/movie
echo "结束测试APR服务--------------------------"